﻿using System;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;

namespace PhoneInfo
{
    public class BoolToBackground : IValueConverter
    {

        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //FF7D7D7D
            return (bool)value ?(new SolidColorBrush(Color.FromArgb(0xff,0x7d,0x7d,0x7d))) : Theme.cuTheme.SecondTextBrush;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
